/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GrupoD_Final;

import java.io.Serializable;

//ImpGenericMessage class create a GenericMessage and fill its content and get it too. 
public class ImpGenericMessage implements Serializable, GenericMessage {

    String destination, source, MessageType, content, resource;

    public ImpGenericMessage() {
    }

    public void setSearchProfile(ImpGenericMessage sch) {
        sch.setMessageType("SearchProfile");
    }

    public void setSearchResult(ImpGenericMessage schresult) {
        schresult.setMessageType("SearchResult");
    }

    public void setUserContent(ImpGenericMessage ucontent) {
        ucontent.setMessageType("UserContent");
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public void setMessageType(String MessageType) {
        this.MessageType = MessageType;
    }

    public void setContent(String content) {

        this.content = content;

    }

    public String getSource() {
        return source;
    }

    public String getDestination() {
        return destination;
    }

    public String getMessageType() {
        return MessageType;
    }

    public String getContent() {
        return content;
    }

    public String getResource() {
        return resource;
    }
}
